package net.aiion.weave.impl.bytecode.events;

import net.aiion.weave.spi.bytecode.BytecodeVisitor;
import net.aiion.weave.spi.bytecode.events.FieldEndBytecodeEvent;

public class FieldEndBytecodeEventImpl extends BytecodeEventImpl implements FieldEndBytecodeEvent
{
    private static final FieldEndBytecodeEvent INSTANCE = new FieldEndBytecodeEventImpl();

    public FieldEndBytecodeEventImpl() {
    }

    @Override
    public int getType() {
        return FIELD_END;
    }

    public static FieldEndBytecodeEvent getInstance() {
        return INSTANCE;
    }

    @Override
    public BytecodeVisitor acceptBytecodeVisitor(final BytecodeVisitor aBytecodeVisitor) {
        aBytecodeVisitor.asBytecodeFieldVisitor().visitFieldEnd(this);
        return null;
    }
}
